package com.jetpackframework.fixpatch;

import com.jetpackframework.Application;

public class Fixpatch {


    private String apkPath;
    private String dexPath;
    private String soPath;
    private String resourcePath;

    public Fixpatch(String apkPath, String dexPath, String soPath, String resourcePath) {
        this.apkPath = apkPath;
        this.dexPath = dexPath;
        this.soPath = soPath;
        this.resourcePath = resourcePath;
    }

    public String getApkPath() {
        return apkPath;
    }

    public String getDexPath() {
        return dexPath;
    }

    public String getSoPath() {
        return soPath;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public static void install(Application application,Fixpatch builder){
        FixpatchInstaller.install(application,builder);
    }
    static final class Builder{
        private String apkPath;
        private String dexPath;
        private String soPath;
        private String resourcePath;

        public Builder setApkPath(String apkPath) {
            this.apkPath = apkPath;
            return this;
        }

        public Builder setDexPath(String dexPath) {
            this.dexPath = dexPath;
            return this;
        }

        public Builder setSoPath(String soPath) {
            this.soPath = soPath;
            return this;
        }

        public Builder setResourcePath(String resourcePath) {
            this.resourcePath = resourcePath;
            return this;
        }

        public Fixpatch builder(){
            return new Fixpatch(apkPath,dexPath,soPath,resourcePath);
        }
    }
}
